﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class CTDatHangOnlineDTO
    {
        #region "Khai báo các biến"
        private string _maDHOL;
        private string _maMH;
        private int _soluong;
        private double _dongia;
        private float _khuyenmai;
        private double _thanhtien;

       
        #endregion

        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaDHOL
        {
            get { return _maDHOL; }
            set { _maDHOL = value; }
        }
        [DataMember]
        public string MaMH
        {
            get { return _maMH; }
            set { _maMH = value; }
        }
        [DataMember]
        public int Soluong
        {
            get { return _soluong; }
            set { _soluong = value; }
        }
        [DataMember]
        public double Dongia
        {
            get { return _dongia; }
            set { _dongia = value; }
        }
        [DataMember]
        public float Khuyenmai
        {
            get { return _khuyenmai; }
            set { _khuyenmai = value; }
        }
        [DataMember]
        public double Thanhtien
        {
            get { return _thanhtien; }
            set { _thanhtien = value; }
        }
        #endregion

        #region "Khai báo các contructor"
        public CTDatHangOnlineDTO() { }
        public CTDatHangOnlineDTO(string madh, string mamh, int soluong, double dongia, float khuyenmai,double thanhtien)
        {
            MaDHOL = madh;
            MaMH = mamh;
            Soluong = soluong;
            Dongia = dongia;
            Khuyenmai = khuyenmai;
            Thanhtien = thanhtien;
        }
        public CTDatHangOnlineDTO(CTDatHangOnlineDTO CTDatHangOnline)
        {
            this.MaDHOL = CTDatHangOnline.MaDHOL;
            this.MaMH = CTDatHangOnline.MaMH;
            this.Soluong = CTDatHangOnline.Soluong;
            this.Dongia = CTDatHangOnline.Dongia;
            this.Khuyenmai = CTDatHangOnline.Khuyenmai;
            this.Thanhtien = CTDatHangOnline.Thanhtien;
        }
        #endregion
    }
}